<html><head><title>Abs</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">Abs()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result.f = <font color="#006666"><b>Abs</b></font>(Number.f)</blockquote>

<b>Description</b><br><blockquote>

Returns the absolute value of the given float value. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Number.f</i></td>
<td width="90%"> 
The number from which to get the absolute value. 
This function will only work correctly with float numbers. 
With integers, it will fail if the integer is too large (due to a loss of precision). 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns the absolute value. The return-value is always positive. 

</blockquote><p><b>Remarks</b></p><blockquote>

This function can handle <a href="../reference/variables.html">float and double</a> values. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">Debug</font></b> <font color="#006666">Abs</font>(3.14159)  <font color="#006666">; Will display '3.14159'</font>
  <b><font color="#006666">Debug</font></b> <font color="#006666">Abs</font>(-3.14159) <font color="#006666">; will display '3.14159'</font>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="sign.html">Sign()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=atanh.html>ATanH()</a> - <a href=index.html>Math Index</a> - <a href=cos.html>Cos()</a> ->

</body></html>